package com.dayu.design.创建型.简单工厂模式;

import com.dayu.design.common.ShapeEnum;

/**
 * @author dayu
 * @create 2023-11-28 17:54
 */
public class ShapeFactory {
    public Shape getShape(ShapeEnum shapeType) throws Exception {
        return shapeType.getClazz().newInstance();
    }
}
